Skip to content

Conversation

fpapa250
Copy link
Contributor

Team from PsiQuantum reached out and pointed out another bug in the circuit nearly equivalent to one of the other ones that I found/fixed.

When [(a, b) = (0, 0) AND x = 0] OR [(x, y) = (0, 0) AND a = 0], the f_1 flag is not cleared. I added the same fix to this situation that I did in the similar scenario when the b/y values are all 0 for the f_2 flag. This cost 2 3n-controlled toffolis.

Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments on test naming so it's clear what the various tests test

@mpharrigan
Copy link
Collaborator

sorry, I missed that the fix was pushed. Please feel free to comment on PRs when you're ready for re-review so I get a notification!

@mpharrigan mpharrigan enabled auto-merge (squash) August 21, 2025 23:46
@mpharrigan mpharrigan merged commit 0f88a0b into quantumlib:main Aug 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants